﻿#include "workmovetothread.h"

WorkMoveToThread::WorkMoveToThread(QObject *parent) : QObject(parent)
{
    MyThread *thread = new MyThread();
    this->moveToThread(thread);
    thread->start();

}
WorkMoveToThread::~WorkMoveToThread(){
}
void WorkMoveToThread::callWorkMoveToThread()//GUI线程
{
    qDebug()<<this->objectName()<<"WorkMoveToThread callWork  :  "<<QThread::currentThread();
}

void WorkMoveToThread::slotWorkMoveToThread()//槽函数会在线程中执行
{
    qDebug()<<"slotWorkMoveToThread: "<<QThread::currentThread();
}
